package org.zfes.snowier.zbss.xzy.face;

public class Rect{
  private int left;
  private int top;
  private int right;
  private int bottom;
  
  public Rect() {}
  
  public Rect(int left, int top, int right, int bottom) {
    this.left = left;
    this.top = top;
    this.right = right;
    this.bottom = bottom;
  }




  
  public Rect(Rect r) {
    if (r == null) {
      this.left = this.top = this.right = this.bottom = 0;
    } else {
      this.left = r.left;
      this.top = r.top;
      this.right = r.right;
      this.bottom = r.bottom;
    } 
  }





  
  public String toString() {
    StringBuilder sb = new StringBuilder(32);
    sb.append("com.arcsoft.face.Rect(");
    sb.append(this.left);
    sb.append(", ");
    sb.append(this.top);
    sb.append(" - ");
    sb.append(this.right);
    sb.append(", ");
    sb.append(this.bottom);
    sb.append(")");
    return sb.toString();
  }
  
  public int getLeft() {
    return this.left;
  }
  
  public void setLeft(int left) {
    this.left = left;
  }
  
  public int getTop() {
    return this.top;
  }
  
  public void setTop(int top) {
    this.top = top;
  }
  
  public int getRight() {
    return this.right;
  }
  
  public void setRight(int right) {
    this.right = right;
  }
  
  public int getBottom() {
    return this.bottom;
  }
  
  public void setBottom(int bottom) {
    this.bottom = bottom;
  }
}

